package Player;

import java.util.ArrayList;
import javax.swing.Icon;

import command.Attack;

import concept.Attributes;

public class Enemy {
	
	public Enemy(String name, int level, ArrayList<Attack> att, Attributes attributes) {
		super();
		this.name = name;
		this.description = null;
		this.level = level;
		this.att = att;
		this.attributes = attributes;
		this.avatar = null;
		maxLife = attributes.getStrength()*10 + 5;
        maxMana = attributes.getIntelligence()*10;
		this.life = maxLife;
	    this.mana = maxMana;
	}
	
	public Enemy(String name, String description, int level, ArrayList<Attack> att, Attributes attributes, Icon avatar) {
		super();
		this.name = name;
		this.description = description;
		this.level = level;
		this.att = att;
		this.attributes = attributes;
		this.avatar = avatar;
		maxLife = attributes.getStrength()*10 + 5;
        maxMana = attributes.getIntelligence()*10;
		this.life = maxLife;
	    this.mana = maxMana;
	}
	
	public int getLife() {
		return life;
	}

	public void setLife(int life) {
		this.life = life;
	}

	public int getMana() {
		return mana;
	}

	public void setMana(int mana) {
		this.mana = mana;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public int getLevel() {
		return level;
	}

	public int getMaxLife() {
		return maxLife;
	}

	public int getMaxMana() {
		return maxMana;
	}

	public ArrayList<Attack> getAtt() {
		return att;
	}

	public Attributes getAttributes() {
		return attributes;
	}

	public Icon getAvatar() {
		return avatar;
	}

	private String  name, description;
    private int level, life, maxLife, mana, maxMana;
    private ArrayList<Attack> att;
    private Attributes attributes;
    private Icon avatar;

}
